#pragma once

#include "afxwin.h"
#include "STLUtil.h"
#include "NaverCafeKeyWordMonitor.h"

class CUsedItemMonitorExDlg : public CDialog
{
	public		:
		
				CUsedItemMonitorExDlg( CWnd * pParent = NULL );

		enum { IDD = IDD_USEDITEMMONITOREX_DIALOG };

		afx_msg
		VOID	OnBnClickedBtnDoStartMonitoring( VOID );

		afx_msg
		VOID	OnEnChangeEditCycle( VOID );
		afx_msg
		VOID	OnEnChangeEditKeyword( VOID );

	protected	:

		virtual
		VOID	DoDataExchange( CDataExchange * pDX );


		HICON m_hIcon;

		virtual
		BOOL	OnInitDialog();
		
		afx_msg
		VOID	OnSysCommand( UINT nID, LPARAM lParam );
		afx_msg
		VOID	OnPaint( VOID );
		
		afx_msg
		HCURSOR	OnQueryDragIcon( VOID );
		
		DECLARE_MESSAGE_MAP()


	private		:

		CButton	m_btnStartMonitoring;
		CEdit	m_editCycle;
		CEdit	m_editKeyWords;
		CNaverCafeKeyWordMonitor
				m_NaverCafeKeyWordMonitor;		
		
		BOOL	Initialize( VOID );

		VOID	CheckParam( VOID );
		BOOL	GetParam( CString & sCycle, CString & sKeyWords );
		BOOL	GetParam( DWORD & dwCycle, deque< tstring > & dequeKeyWords );
};
